package com.dm.cloud.auth.service;

import com.dm.cloud.auth.common.mode.AuthUserExtend;
import com.dm.cloud.auth.common.po.AuthUser;
import com.dm.cloud.core.mode.UserMode;
import com.dm.cloud.tkmybatis.service.BaseEntityService;
import com.dm.cloud.auth.common.request.AuthUserSearchRequest;

import java.util.List;

/**
   * @author hcx
   * @type AuthUserService.java
   * @desc AuthUser service
   */
public interface AuthUserService extends BaseEntityService<AuthUserSearchRequest,AuthUser> {

    /**
     * 查询用户
     * @param name
     * @return
     */
    AuthUser findByUserName(String name);

    UserMode login(String name, String pwd, String role);

    AuthUserExtend inserExtend(AuthUserExtend authUserExtend);

    AuthUserExtend updateExtend(AuthUserExtend authUserExtend);

    List<AuthUser> findByAppCode(String appCode);

}
